package com.lumi.max.jnicall.serialoperate;

/**
 * Created by Administrator on 2016/3/22.
 */
public class DeviceInfo {
    public DeviceInfo(int short_id, String device_id, String model)
    {
        this.short_id = short_id;
        this.device_id = device_id;
        this.model = model;
    }
    public DeviceInfo(String data)
    {
        String[] items = data .split(",");
        this.short_id = Integer.valueOf(items[0]).intValue();
        this.device_id = items[1];
        this.model = items[2];
    }
    public int short_id;
    public String device_id;
    public String model;

    public String toString()
    {
        return  Integer.toString(short_id) + "," + device_id + "," + model;
    }
}
